package cn.kevinking.ai.config;

import cn.kevinking.ai.service.impl.HelloMcpServerService;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author kevinking
 * @since 20 Jul 2025
 */
@Configuration
public class McpServerConfig {

	@Bean
	public ToolCallbackProvider helloMcpServerTools(HelloMcpServerService helloMcpServerService) {
		return MethodToolCallbackProvider.builder().toolObjects(helloMcpServerService).build();
	}
}
